#ifndef KESTRINGTOAST_H
#define KESTRINGTOAST_H

#include "../../../../kegui_global.h"

#include <QWidget>
#include <QString>
#include <QtTypes>

class KEGUI_EXPORT KeStringToast : public QWidget
{
    Q_OBJECT
public:
    explicit KeStringToast(const QString &text,QWidget *parent);
    ~KeStringToast();

public:
    void showAt(int msec,const QPoint &point);
    void mousePressEvent(QMouseEvent* event)override;
    void paintEvent(QPaintEvent *event) override;
public:
    quint32 bgColor;
    quint32 textColor;
Q_SIGNALS:

public Q_SLOTS:
    void timeoutClose();
protected:
    QString labelText;
};

#endif // KESTRINGTOAST_H
